package com.graduate.service;

import com.graduate.po.Payment;
import com.graduate.po.PaymentCustom;
import com.graduate.po.User;

import java.math.BigDecimal;
import java.util.List;

public interface PaymentService {

    // 获取分页查询缴费信息
    List<PaymentCustom> findByPaging(Integer toPageNo) throws Exception;
    // 获取分页查询某个人的缴费信息
    List<PaymentCustom> findByPagingEach(String userName) throws Exception;
    List<PaymentCustom> findByPagingEachByID(Integer id, Integer toPageNo) throws Exception;
    // 获取某个人缴费信息总数
    int getPaymentCountByUserName(String userName) throws Exception;
    // 获取某个人缴费信息总数by id
    int getPaymentCountByUserID(Integer userID) throws Exception;
    // 保存缴费信息
    Boolean save(Payment payment) throws Exception;
    // 更新余额信息
    void updateBalance(Payment payment) throws Exception;
    //获取用户总数
    int getUserCount() throws Exception;
}
